package cn.js.sip.rat.system.session;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName: cn.js.sip.rat.system.session
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2019-12-29   15:54
 */
public class ShiroSessionListener implements SessionListener {
    private static Logger logger= LoggerFactory.getLogger(ShiroSessionListener.class);
    @Override
    public void onStart(Session session) {
        logger.info("session start ..." + session.getId());
        System.out.println("session start ..." + session.getId());
    }

    @Override
    public void onStop(Session session) {
        System.out.println("session stop ..." + session.getId());
    }

    @Override
    public void onExpiration(Session session) {
        System.out.println("session expiration ..." + session.getId());
    }
}
